package com.li.taskcenter.scheduled;

import java.util.Date;

/**
 * @description: Scheduled定时任务方法
 * @author: Lidong
 * @time: 2020/6/20 14:45
 **/
//@Component
public class ScheduledDemo {

    /**
     * Scheduled定时任务
     */
//    @Scheduled(cron = "0/1 * * * * ?")
    public void scheduledMethod(){
        System.out.println("我是一个定时任务"+new Date());
    }

}
